﻿<phone:PhoneApplicationPage 
	x:Class="WOWA.UI.MainPage"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696"
	FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
	SupportedOrientations="Portrait"  Orientation="Portrait"
	shell:SystemTray.IsVisible="True">

	<!--LayoutRoot contains the root grid where all other page content is placed-->
	<Grid x:Name="LayoutRoot">
		<Grid.Resources>
			<DataTemplate x:Key="HeaderTemplate">
				<ContentPresenter>
					<TextBlock Text="{Binding}" FontFamily="Arial Black" FontWeight="Bold" FontSize="50">
					</TextBlock>
				</ContentPresenter>
			</DataTemplate>
		</Grid.Resources>

		<controls:Panorama Title="魔兽世界狗熊榜">
			<controls:Panorama.Background>
				<ImageBrush ImageSource="Images/Background.jpg" />
			</controls:Panorama.Background>
			
			<controls:Panorama.TitleTemplate>
				<DataTemplate>
					<ContentPresenter>
						<TextBlock Text="{Binding}" FontFamily="Arial Black" FontSize="80" Margin="0, 70, 0, 0" FontWeight="Bold">
							
						</TextBlock>						
					</ContentPresenter>
				</DataTemplate>
			</controls:Panorama.TitleTemplate>
			
			<controls:PanoramaItem Header="角色" HeaderTemplate="{StaticResource HeaderTemplate}">
				<Grid>
					
				</Grid>
			</controls:PanoramaItem>

			<controls:PanoramaItem Header="公会" HeaderTemplate="{StaticResource HeaderTemplate}">
				<Grid/>
			</controls:PanoramaItem>
		</controls:Panorama>
	</Grid>

	<!--Panorama-based applications should not show an ApplicationBar-->
	<phone:PhoneApplicationPage.ApplicationBar>
		<shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
			<shell:ApplicationBarIconButton x:Name="addButton" IconUri="/Images/appbar.add.rest.png" Text="Add" Click="addButton_Click"/>
			<shell:ApplicationBar.MenuItems>
				<shell:ApplicationBarMenuItem x:Name="settingsButton" Text="Settings" Click="settingsButton_Click" />
			</shell:ApplicationBar.MenuItems>
		</shell:ApplicationBar>
	</phone:PhoneApplicationPage.ApplicationBar>

</phone:PhoneApplicationPage>